//package cn.janescott.inner.space.shiro.util;
//
//import org.springframework.beans.BeansException;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.ApplicationContextAware;
//import org.springframework.stereotype.Component;
//
///**
// * Created by Scott on 2018/7/27
// */
//@Component
//public class ApplicationContextUtils implements ApplicationContextAware {
//    private static ApplicationContext applicationContext;
//
//    public static ApplicationContext getApplicationContext() {
//        return ApplicationContextUtils.applicationContext;
//    }
//
//    @Override
//    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
//        ApplicationContextUtils.applicationContext = applicationContext;
//    }
//}
